using System;
using System.Data;
using System.Collections.Generic;
using System.Text;

namespace WHCDC.AIDSQuery
{
    public class  UnitBLL
    {
        public UnitBLL()
        { }

        public static int AddUnit(UnitModel unit)
        {
            return UnitDAL.AddUnit(unit);
        }

        public static bool DelUnit(int unitid)
        {
            return UnitDAL.DelUnit(unitid);
        }

        public static bool UpdateUnit(UnitModel unit)
        {
            return UnitDAL.UpdateUnit(unit);
        }

        public static DataSet GetUnitList()
        {
            return UnitDAL.GetUnitList();
        }
        public static DataSet GetUnitList(string unitdistrict)
        {
            return UnitDAL.GetUnitList(unitdistrict);
        }

        public static UnitModel GetUnit(int unitid)
        {
            return UnitDAL.GetUnit(unitid);
        }

        public static UnitModel GetUnit(string unitname)
        {
            return UnitDAL.GetUnit(unitname);
        }

        public static bool AddUserToUnit(int unitid, int userid)
        {
            return UnitDAL.AddUserToUnit(unitid, userid);
        }

        public static bool DelUserFromUnit(int unitid, int userid)
        {
            return UnitDAL.DelUserFromUnit(unitid, userid);
        }

        public static DataSet GetUnitUser(int unitid)
        {
            return UnitDAL.GetUnitUser(unitid);
        }
    }
}
